//
//  MyPaymentTableViewCell.m
//  Article
//
//  Created by 徐番茄丶 on 16/5/16.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "MyPaymentTableViewCell.h"
#import "MyTools.h"

@implementation MyPaymentTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //80
    _imagelab = [[UILabel alloc]initWithFrame:CGRectMake(12, 8, 40 * MYWIDTH, 40 * MYWIDTH)];
    _imagelab.font = [UIFont fontWithName:@"IconFont" size: 25 * MYWIDTH];
    [self addSubview:_imagelab];
    
    _titlelab = [[UILabel alloc]initWithFrame:CGRectMake(52 * MYWIDTH, 13 * MYWIDTH, WIDTH/3, 20 * MYWIDTH)];
    _titlelab.font = [UIFont fontWithName:@"Heiti SC" size:18 * MYWIDTH];
    _titlelab.textColor = UIColorFromRGB(0x333333);
    _titlelab.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_titlelab];
    
    _messagelab = [[UILabel alloc]initWithFrame:CGRectMake(52 * MYWIDTH, 35 * MYWIDTH, WIDTH /2, 15 * MYWIDTH)];
    _messagelab.font = [UIFont fontWithName:@"Heiti SC" size:10 * MYWIDTH];
    _messagelab.textColor = UIColorFromRGB(0x666666);
    _messagelab.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_messagelab];
    
    //    _btn = [[UIButton alloc]initWithFrame:CGRectMake(WIDTH - 50, 15, 30, 30)];
    //    [self addSubview:_btn];
    
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 60 * MYWIDTH, WIDTH, 0.8)];
    view.backgroundColor = UIColorFromRGB(0xf2f2f2);
    [self addSubview:view];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
